#include "adcvalue.h"
#include "adc.h"


float adcgetvalue;
float adcvalue;

float AdcVoltage(void)
{
		HAL_ADC_PollForConversion(&hadc1, 100);
		adcgetvalue = HAL_ADC_GetValue(&hadc1);
	  adcvalue = adcgetvalue * (3.3 / 4096);
	  return adcvalue ;
}


